@import '../const.less';

.ant-table {
    color: @black3;
}
.ant-table-wrapper {
    background: #FFFFFF;
}
.ant-table-thead {
    background: #FAFAFA;
}
.ant-table-tbody > tr > td {
    border-bottom: 1px solid @blackE8;
}
.ant-table-thead > tr.ant-table-row-hover:not(.ant-table-expanded-row):not(.ant-table-row-selected) > td,
.ant-table-tbody > tr.ant-table-row-hover:not(.ant-table-expanded-row):not(.ant-table-row-selected) > td,
.ant-table-thead > tr:hover:not(.ant-table-expanded-row):not(.ant-table-row-selected) > td,
.ant-table-tbody > tr:hover:not(.ant-table-expanded-row):not(.ant-table-row-selected) > td {
    background: @deriveColor;
}
.ant-table-middle {
    .ant-table-thead > tr > th {
        border-bottom: 1px solid #e8e8e8
    }
}
.ant-table-footer {
    background: #fff;
    &::before {
        height: 1px;
        background: #e8e8e8;
    }
}
.ant-divider {
    background-color: @primaryColor;
}
// 自带分页 样式设置
.ant-table-wrapper {
    .ant-spin-container {
        > .ant-table-pagination {
            border-top: 1px solid #e8e8e8;
        }
    }

}

// 固定表格高度(footer实现分页）
.dt-table-fixed-contain-footer {
    .ant-table-wrapper, &.ant-table-wrapper {
        background: #fff;
        .ant-spin-nested-loading {
            .ant-spin-container {
                .ant-table-fixed-header {
                    .ant-table-content {
                        .ant-table-placeholder {
                            color: #BFBFBF;
                        }
                    }
                }
                .ant-table-footer {
                    background: #fff;
                    &::before {
                        height: 1px;
                        background: #e8e8e8;
                    }
                }
            }
        }
    }
}

// 固定表格高度(自带分页）
.dt-table-fixed-base {
    &.ant-table-wrapper, .ant-table-wrapper {
        background: #fff;
    }
}

// 表格添加外边框
.dt-table-border {
    border: 1px solid @blackDD;
}
// size为small的边框设置
.ant-table-small > .ant-table-content .ant-table-placeholder, .ant-table-small > .ant-table-content .ant-table-row:last-child td{
    border-bottom: 1px solid #e8e8e8;
}
.ant-table-small {
    & > .ant-table-content > .ant-table-header > table > .ant-table-thead > tr > th,
    & > .ant-table-content > .ant-table-body > table > .ant-table-thead > tr > th,
    & > .ant-table-content > .ant-table-scroll > .ant-table-header > table > .ant-table-thead > tr > th,
    & > .ant-table-content > .ant-table-scroll > .ant-table-body > table > .ant-table-thead > tr > th,
    & > .ant-table-content > .ant-table-fixed-left > .ant-table-header > table > .ant-table-thead > tr > th,
    & > .ant-table-content > .ant-table-fixed-right > .ant-table-header > table > .ant-table-thead > tr > th,
    & > .ant-table-content > .ant-table-fixed-left > .ant-table-body-outer > .ant-table-body-inner > table > .ant-table-thead > tr > th,
    & > .ant-table-content > .ant-table-fixed-right > .ant-table-body-outer > .ant-table-body-inner > table > .ant-table-thead > tr > th {
        border-bottom: 1px solid #e8e8e8
    }
}